import React, { memo } from 'react';
import request from '@/utils/request';
export async function getInitialState() {
  const res = await request.post('/fetchLoginUser');

  if (res.success) {
    return {
      currentUser: res.data,
    };
  } else {
    return {
      currentUser: null,
    };
  }
}
